package com.m2bshop.shop.service.impl;

import com.m2bshop.shop.dao.JMDao;
import com.m2bshop.shop.pojo.JM;
import com.m2bshop.shop.service.JMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author asus
 * @create 2022/6/15 10:02
 */
@Service
public class JMServiceImpl implements JMService {
    @Autowired
    private JMDao jmDao;

    @Override
    public List<JM> queryAll1(int userId) {
        List<JM> favoritesList = jmDao.GetGoodsList(userId);
        return favoritesList;
    }

    @Override
    public void dele(int id) {
        jmDao.dele(id);

    }
}
